var mongoose = require('mongoose');
var userSchame = new mongoose.Schema({
  "userId": String,
  "userName": String,
  "userPwd": String,
  "orderList": Array,
  "cartList": [
    {
      "productId": String,
      "productName": String,
      "salePrice": Number,
      "productImage": String,
      "checked": String,
      "productNum": String
    },
  ],
  "addressList":[
    {
      "addressId" : String,
      "userName" : String,
      "tel":String,
      "streetName" : String,
      "postCode" : String,
      "isDefault" : Boolean
    }
  ],
});

module.exports = mongoose.model('User', userSchame);
